<template>
	<!-- 招聘信息 -->
	<view class="bigbox">
		<u-empty text="暂无招聘信息" marginTop="100" v-if="!list.length"></u-empty>
		<view class="" v-for="(item,index) in list" :key="index">
			<blueJobList :data="item" />
		</view>
	</view>
</template>

<script>
	import blueJobList from '@/components/blueJobList.vue'
	export default {
		components: {
			blueJobList
		},
		data() {
			return {
				category_id: '',
				list: [],
				page: 1,
			};
		},
		onReachBottom() {
			this.page++
			this.reindex()
		},
		onLoad(e) {
			this.category_id = e.category_id
			this.reindex()
		},
		methods: {
			reindex() { //招聘信息
				let data = {
					name: this.name,
					page: 1,
					size: this.page * 10
				}
				this.$api.reindex(data).then(res => {
					this.list = res.data
				})
			},
		}
	}
</script>

<style lang="scss">

</style>
